import { writeFile } from 'fs'
import { promisify } from 'util'

export const writeFileAsync = promisify(writeFile)
export const IS_SCM_BUILD = Boolean(process.env.IN_SCM) || Boolean(process.env.BUILD_REPO_NAME)
export const IN_CI = Boolean(process.env.CI)
export const SCM_BUILD_TYPE =
  process.env.BUILD_TYPE === 'online' ? 'prod' : process.env.BUILD_TYPE === 'offline' ? 'boe' : 'testing'
